//
//  MerchandiseListController.h
//  ios-supplier
//
//  Created by feynmanyuan on 15/4/20.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JFBMerchandiseCategoryDS.h"
#import "JFBMerchandiseDS.h"

@interface MerchandiseListController : UIViewController<UITableViewDataSource, UITableViewDelegate>{
    JFBMerchandiseDS *_currentMerchandise;
}
@property (weak, nonatomic) IBOutlet UILabel *allShelflabel;//全部
@property (weak, nonatomic) IBOutlet UILabel *allShelfNumber;//全部数量
@property (weak, nonatomic) IBOutlet UILabel *upShelfNumber;//已上架数量
@property (weak, nonatomic) IBOutlet UILabel *downShelfNumber;//未上架数量
@property (weak, nonatomic) IBOutlet UILabel *allRed;//全部下面的标注
@property (weak, nonatomic) IBOutlet UILabel *upRed;//已上架标注
@property (weak, nonatomic) IBOutlet UILabel *downRed;//未上架标注

@property (weak, nonatomic) IBOutlet UIButton *allShelfButtonClick;
@property (weak, nonatomic) IBOutlet UIButton *upShelfButtonClick;
@property (weak, nonatomic) IBOutlet UIButton *downShelfButtonClick;


@property (weak, nonatomic) IBOutlet UIButton *upShelfCheck;
@property (weak, nonatomic) IBOutlet UIButton *downShelfCheck;
@property (weak, nonatomic) IBOutlet UILabel *downShelfLabel;
@property (weak, nonatomic) IBOutlet UILabel *upShelfLabel;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (nonatomic, strong) id<JFBDataSourceRefreshDelegate> delegate;
- (IBAction)downBtnClick:(id)sender;
- (IBAction)upBtnClick:(id)sender;

@property (nonatomic, strong) NSMutableArray *items;
@property (nonatomic, strong) NSMutableArray *currentItems;
//-1-全部 4-上架的 5-下架的
@property (nonatomic, assign) NSUInteger currentFilter;
@property (nonatomic, strong) JFBMerchandiseCategoryDS *merchandiseCategory;
@property (nonatomic, assign) JFBMerchandiseDS *merchandiseDS;
//-(void)tableViewDataSourceFilte;
//-(void)refreshCount;
@end
